<pointTypes>
{assign var=total value=0}
{foreach from=$userPoints item=point}
<pointType pintid="{$point->getPointTypeId()}" 
	point="{$point->getPoint()}" 
/>
{assign var=total value=$total+$point->getPoint()}
{/foreach}
<pointType pintid="total" 
	point="{$total}" 
/>
</pointTypes>